#ifndef DBSETWINDOW_H
#define DBSETWINDOW_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QSqlRecord>
namespace Ui {
class DBSetWindow;
}

class DBSetWindow : public QWidget
{
    Q_OBJECT

public:
    explicit DBSetWindow(QWidget *parent = 0);
    ~DBSetWindow();
    void initWindow();
private slots:
    void on_lookButton_clicked();

    void on_deriverComboBox_currentIndexChanged(const QString &arg1);

    void on_openButton_clicked();

    void on_closeButton_clicked();
signals:
    void changeTableWindow();
    void databaseOpened(QSqlDatabase &db);

private:
    Ui::DBSetWindow *ui;
    QSqlDatabase db;
     QString filename;
};

#endif // DBSETWINDOW_H
